package com.xm.entity;

/**
 * 产品实体类
 * 
 * @author kh
 */
public class Product {
	private int id;// 产品编号
	private String proname;// 产品名
	private int protype;// 外键id
	private String color;// 颜色
	private double market;// 市场价
	private double price;// 本店出售价
	private String brand;// 品牌
	private String style;// 风格
	private String material;// 材质
	private String zuZhuang;// 是否组装
	private String dingzhi;// 是否定制
	private String picurl;// 产品图片
	private String isShow;// 是否在页面上展示
	private String model;// 产品型号
	private String element;// 设计元素
	private String positioning;// 款式定位

	// 额外的属性（来自类别表）
	private String typename;// 类别名

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getProname() {
		return proname;
	}

	public void setProname(String proname) {
		this.proname = proname;
	}

	public int getProtype() {
		return protype;
	}

	public void setProtype(int protype) {
		this.protype = protype;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public double getMarket() {
		return market;
	}

	public void setMarket(double market) {
		this.market = market;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public String getZuZhuang() {
		return zuZhuang;
	}

	public void setZuZhuang(String zuZhuang) {
		this.zuZhuang = zuZhuang;
	}

	public String getDingzhi() {
		return dingzhi;
	}

	public void setDingzhi(String dingzhi) {
		this.dingzhi = dingzhi;
	}

	public String getPicurl() {
		return picurl;
	}

	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getElement() {
		return element;
	}

	public void setElement(String element) {
		this.element = element;
	}

	public String getPositioning() {
		return positioning;
	}

	public void setPositioning(String positioning) {
		this.positioning = positioning;
	}

	public String getTypename() {
		return typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	@Override
	public String toString() {
		return "Product [id=" + id + ", proname=" + proname + ", protype=" + protype + ", color=" + color + ", market="
				+ market + ", price=" + price + ", brand=" + brand + ", style=" + style + ", material=" + material
				+ ", zuZhuang=" + zuZhuang + ", dingzhi=" + dingzhi + ", picurl=" + picurl + ", isShow=" + isShow
				+ ", model=" + model + ", element=" + element + ", positioning=" + positioning + ", typename="
				+ typename + "]";
	}

	public Product(int id, String proname, int protype, String color, double market, double price, String brand,
			String style, String material, String zuZhuang, String dingzhi, String picurl, String isShow, String model,
			String element, String positioning, String typename) {
		super();
		this.id = id;
		this.proname = proname;
		this.protype = protype;
		this.color = color;
		this.market = market;
		this.price = price;
		this.brand = brand;
		this.style = style;
		this.material = material;
		this.zuZhuang = zuZhuang;
		this.dingzhi = dingzhi;
		this.picurl = picurl;
		this.isShow = isShow;
		this.model = model;
		this.element = element;
		this.positioning = positioning;
		this.typename = typename;
	}

	public Product(int id, String proname, int protype, String color, double market, double price, String brand,
			String style, String material, String zuZhuang, String dingzhi, String picurl, String isShow, String model,
			String element, String positioning) {
		super();
		this.id = id;
		this.proname = proname;
		this.protype = protype;
		this.color = color;
		this.market = market;
		this.price = price;
		this.brand = brand;
		this.style = style;
		this.material = material;
		this.zuZhuang = zuZhuang;
		this.dingzhi = dingzhi;
		this.picurl = picurl;
		this.isShow = isShow;
		this.model = model;
		this.element = element;
		this.positioning = positioning;
	}

	public Product() {
		super();
		// TODO Auto-generated constructor stub
	}

}